function init(){

    var provisionContent = document.getElementById('provision_content');
    provisionContent.innerHTML = jsInterface.getProvisionContent();
}

function jsClick(){

    prompt("{\"bridgeName\":\"CommonBridge\",\"action\":\"nativeCallback\",\"callbackFunction\":\"commonReceive\"}","");
}

//接收网络数据
function receiveNetwork(res){
    window.alert(res);
}

//get请求
function getRequest(){
    var ps = "{\"os\":\"android\",\"url\":\"http://192.168.200.51:3000/mock/83/mw/companies/overallMonitor\"}"
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"getRequest\",\"callbackFunction\":\"receiveNetwork\"}",ps);
}

//get请求
function getRequestShouldOve(){
    var ps = "{\"os\":\"android\",\"url\":\"http://192.168.200.51:3000/mock/83/mw/companies/overallMonitor\"}"
    document.location = "js://webview?bridgeName=DeviceBridge&action=getRequest&callbackFunction=receiveNetwork&params=" + ps;
}

function commonReceive(s){
    window.alert(s);
}

//读通讯录
function readContract(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"readContract\",\"callbackFunction\":\"commonReceive\"}","");
}

//读通讯录
function readContractShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=readContract&callbackFunction=commonReceive";
}

//写通讯录
function writeContract(){
    var ps = "{\"name\":\"name\",\"tel\":\"18612803064\"}"
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"writeContract\"}",ps);
}

//写通讯录
function writeContractShouldOve(){
    var ps = "{\"name\":\"name\",\"tel\":\"18612803064\"}"
    document.location = "js://webview?bridgeName=DeviceBridge&action=writeContract&params=" + ps;
}

function getClipboard(){
    var result = prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"getNativeClip\"}","");
    window.alert(result);
}

function nativeAlert(){
    var result = prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"nativeAlert\",\"extra\":\"dialog\"}","");
}

function nativeAlertShouldOve(){
   document.location = "js://webview?bridgeName=DeviceBridge&action=nativeAlert&extra=dialogShould";
}

function updateApp(){
    var ps = "{\"title\":\"版本更新\",\"url\":\"http://192.168.200.51:3000/mock/83/mw/companies/overallMonitor\",\"content\":\"新版本\",\"version\":\"1.0.0\",\"isForce\":\"0\"}";
    var result = prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"appUpdate\"}",ps);
}

function updateAppShouldOve(){
    var ps = "{\"title\":\"版本更新\",\"url\":\"http://192.168.200.51:3000/mock/83/mw/companies/overallMonitor\",\"content\":\"新版本\",\"version\":\"1.0.0\",\"isForce\":\"0\"}";
    document.location = "js://webview?bridgeName=DeviceBridge&action=appUpdate&params=" + ps;
}

function nativeDialog(){
    var ps = "{\"title\":\"标题\",\"cancel\":\"取消\",\"content\":\"新版本\",\"sure\":\"确定\",\"isForce\":\"0\"}";
    var result = prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"nativeDialog\"}",ps);
}

function nativeDialogShouldOve(){
    var ps = "{\"title\":\"标题\",\"cancel\":\"取消\",\"content\":\"新版本\",\"sure\":\"确定\",\"isForce\":\"0\"}";
    document.location = "js://webview?bridgeName=DeviceBridge&action=nativeDialog&params=" + ps;
}

function loadingPrompt(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"nativeLoading\",\"extra\":\"加载中...\"}");
}

function loadingShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=nativeLoading&extra=加载中..."
}

function requestPermission(){
    var result = prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"permission\",\"extra\":\"1\"}","");
}

function requestPermissionShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=permission&extra=2";
}

function nativeToast(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"nativeToast\",\"extra\":\"toast\"}","");
}

function nativeToastShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=nativeToast&extra=toast ove";
}

CameraPicture

function cameraPicture(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"CameraPicture\",\"extra\":\"拍照\"}","");
}

function cameraPictureShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=CameraPicture&extra=paizaho";
}

function callPhone(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"CallPhone\",\"extra\":\"打电话\"}","");
}

function callPhoneShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=CallPhone&extra=打电话";
}

function sendSMS(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"SendSMS\",\"extra\":\"发短信\"}","");
}

function sendSMSShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=SendSMS&extra=发短信";

}function recordVedio(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"RecordVedio\",\"extra\":\"录制视频\"}","");
}

function recordVedioShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=RecordVedio&extra=录制视频";
}

function qrCode(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"QrCode\",\"extra\":\"二维码扫描\"}","");
}

function qrCodeShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=QrCode&extra=二维码扫描";
}

function selectNativeVedio(){
    prompt("{\"bridgeName\":\"DeviceBridge\",\"action\":\"SelectNativeVedio\",\"extra\":\"选择本地视频\"}","");
}

function selectNativeVedioShouldOve(){
    document.location = "js://webview?bridgeName=DeviceBridge&action=SelectNativeVedio&extra=选择本地视频";
}